//
//  HaveHeaderTableViewController.h
//  shengxian_delivery
//
//  Created by pg on 2017/3/13.
//  Copyright © 2017年 杨笑. All rights reserved.
//

#import "FatherViewController.h"
#import "MJRefresh.h"
#import "UITableView+Category.h"

@interface HaveHeaderTableViewController : FatherViewController <UITableViewDelegate,UITableViewDataSource>
{
//    WKApi *_listApi;
}
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *headerViewH;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *fromTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *fromBottom;
@property (weak, nonatomic) IBOutlet UIView *headerView;
@property(nonatomic,strong)NSMutableArray *dataArray;
@property(nonatomic,assign,readonly)BOOL haveNotDataView;
@property(nonatomic,strong)WKApi *listApi;

/**
 *  子类重写返回headerView  添加完view 设置Height
 */
-(UIView *)addHeaderView;

-(void)showOrHideDataView;
-(void)configNotDataView:(UIImage *)image text:(NSString *)text;

-(void)addMj_header;
-(void)addMj_footer;
-(void)refreshData;
-(void)loadMore;
-(void)endRefreshing;
@end
